home *** CD-ROM | disk | FTP | other *** search
- subtitleTextBox. setText ("")
- mainTextBox. setText ("")
-
- activeBreadboard. setAnimatePoint ( 20 , 210 )
- activeBreadboard. stampAndMove ( "Axon" , "inputAxon" )
- inputAxon. setRows ( 2 )
- activeBreadboard. setAnimatePoint ( 110 , 210 )
- activeBreadboard. stampAndMove ( "FullSynapse" , "hidden1Synapse" )
- inputAxon. connectTo ( "hidden1Synapse" )
- activeBreadboard. setAnimatePoint ( 200 , 210 )
- activeBreadboard. stampAndMove ( "TanhAxon" , "hidden1Axon" )
- hidden1Axon. setRows ( 2 )
- hidden1Synapse. connectTo ( "hidden1Axon" )
- activeBreadboard. setAnimatePoint ( 290 , 210 )
- activeBreadboard. stampAndMove ( "FullSynapse" , "outputSynapse" )
- hidden1Axon. connectTo ( "outputSynapse" )
- activeBreadboard. setAnimatePoint ( 380 , 210 )
- activeBreadboard. stampAndMove ( "TanhAxon" , "outputAxon" )
- outputSynapse. connectTo ( "outputAxon" )
- activeBreadboard. setAnimatePoint ( 470 , 210 )
- activeBreadboard. stampAndMove ( "L2Criterion" , "criterion" )
- outputAxon. connectTo ( "criterion" )
-
- activeBreadboard. setAnimatePoint ( 15 , 185 )
- activeBreadboard. stampAndMove ( "StaticControl" , "control" )
- activeBreadboard. stampOnAndMove ( "BackStaticControl" , "control" )
- controlBackprop. setGradientClassName ( "Momentum" )
- controlBackprop. allocateBackpropPlane ( )
-
- activeBreadboard. select ( "hidden1SynapseBackpropGradient" , FALSE )
- activeBreadboard. select ( "hidden1AxonBackpropGradient" , TRUE )
- activeBreadboard. select ( "outputSynapseBackpropGradient" , TRUE )
- activeBreadboard. select ( "outputAxonBackpropGradient" , TRUE )
- activeSelection. setStepSize ( 0.300000 )
- activeSelection. setMomentumRate ( 0.700000 )
-
- activeBreadboard. stampOnAndMove ( "File" , "inputAxon" )
- file. setName ("inputFile")
- inputFile. setActiveAccessPoint ( "Pre-Activity" )
- inputFilePath = macro. pathFromMacro ( "xor.asc" )
- inputFile. addFile ( inputFilePath , FALSE )
- inputFile. setUseDefaultTranslatorForActiveFile ( FALSE , FALSE )
- inputFile. setActiveTranslatorName ( "ASCII - Column" , FALSE )
- inputFile. beginCustomizeOfActiveFile ( )
- inputFile. setSkipForActiveFile ( 2 , 2 )
- inputFile. endCustomizeOfActiveFile ( FALSE )
- inputFile. setNormalize ( FALSE )
- inputFile. translate ( )
- activeBreadboard. stampOnAndMove ( "File" , "criterion" )
- file. setName ("desiredFile")
- desiredFile. setActiveAccessPoint ( "Desired Signal" )
- desiredFilePath = macro. pathFromMacro ( "xor.asc" )
- desiredFile. addFile ( desiredFilePath , FALSE )
- desiredFile. setUseDefaultTranslatorForActiveFile ( FALSE , FALSE )
- desiredFile. setActiveTranslatorName ( "ASCII - Column" , FALSE )
- desiredFile. beginCustomizeOfActiveFile ( )
- desiredFile. setSkipForActiveFile ( 0 , 0 )
- desiredFile. setSkipForActiveFile ( 1 , 1 )
- desiredFile. endCustomizeOfActiveFile ( FALSE )
- desiredFile. setNormalize ( FALSE )
- desiredFile. translate ( )
-
- activeBreadboard. stampOnAndMove ( "MatrixViewer" , "inputFile" )
- matrixViewer. setName ("activeInputProbe")
- activeInputProbe. setAutosizing ( TRUE )
- activeInputProbe. setEnableLabels ( TRUE )
- activeInputProbe. setLabelSize ( 30 )
- activeInputProbe. setFileForColumnHeadings ( "inputFile" )
- activeInputProbe. loadColumnHeadings ( )
- activeInputProbe. setAccessRows (FALSE)
- activeInputProbe. setActiveNeuron (0)
- activeInputProbe. setLabel ( "Input" )
-
- activeBreadboard. stampOnAndMove ( "MatrixViewer" , "outputAxon" )
- matrixViewer. setName ("activeOutputProbe")
- activeOutputProbe. setActiveAccessPoint ( "Activity" )
- activeOutputProbe. setAutosizing ( TRUE )
- activeOutputProbe. setEnableLabels ( TRUE )
- activeOutputProbe. setLabelSize ( 30 )
- activeOutputProbe. setFileForColumnHeadings ( "desiredFile" )
- activeOutputProbe. loadColumnHeadings ( )
- activeOutputProbe. setAccessRows (FALSE)
- activeOutputProbe. setActiveNeuron (0)
- activeOutputProbe. setLabel ( "Output" )
-
- activeBreadboard. stampOnAndMove ( "MatrixViewer" , "desiredFile" )
- matrixViewer. setName ("activeDesiredProbe")
- activeDesiredProbe. setAutosizing ( TRUE )
- activeDesiredProbe. setEnableLabels ( TRUE )
- activeDesiredProbe. setLabelSize ( 30 )
- activeDesiredProbe. setLabel ( "D" )
- activeDesiredProbe. setAccessRows (FALSE)
- activeDesiredProbe. setActiveNeuron (0)
- activeDesiredProbe. setLabel ( "Desired" )
-
- activeBreadboard. stampOnAndMove ( "BarChart" , "criterion" )
- barChart. setName ("activeCostProbe")
- activeCostProbe. setActiveAccessPoint ( "Average Cost" )
- activeCostProbe. setMinNormValue ( 0.000000 )
- activeCostProbe. setMaxNormValue ( 0.500000 )
- activeCostProbe. setAutosizing ( TRUE )
- activeCostProbe. setEnableLabels ( TRUE )
- activeCostProbe. setLabelSize ( 30 )
- activeCostProbe. setAccessRows ( TRUE )
- activeCostProbe. setLabel ( "" )
- activeCostProbe. setWantsColumn (TRUE)
- activeCostProbe. setAccessRows (FALSE)
- activeCostProbe. setActiveNeuron (0)
- activeCostProbe. setLabel ( "Cost" )
-
- activeInputProbe. tileWindow (1,4,4,4)
- activeOutputProbe. tileWindow (2,4,4,4)
- activeDesiredProbe. tileWindow (3,4,4,4)
- activeCostProbe. tileWindow (4,4,4,4)
-
- activeBreadboard. lockWindowUpdate()
-
- CreateLargeButtonMacroPath = macro. pathFromNS ( "Macros\create large button.nsm" )
- activeBreadboard. runMacro ( CreateLargeButtonMacroPath )
- controlButton. setName ( "runNetwork" )
- runNetwork. setText ( "Run" )
- runNetwork. moveTo ( 630 , 55 )
- ControlMacroPath = macro. pathFromMacro ( "resetRunIncreaseEpochs.nsm" )
- runNetwork. setMacroPath ( ControlMacroPath )
-
- activeBreadboard. runMacro ( CreateLargeButtonMacroPath )
- controlButton. setName ( "stepExemplar" )
- stepExemplar. setText ( "Step" )
- stepExemplar. moveTo ( 630 , 90 )
- ControlMacroPath = macro. pathFromNS ( "Macros\stepExemplar.nsm" )
- stepExemplar. setMacroPath ( ControlMacroPath )
-
- activeBreadboard. runMacro ( CreateLargeButtonMacroPath )
- controlButton. setName ( "saveWeights" )
- saveWeights. setText ( "Save weights" )
- saveWeights. moveTo ( 630 , 125 )
- ControlMacroPath = macro. pathFromMacro ( "saveWeights.nsm" )
- saveWeights. setMacroPath ( ControlMacroPath )
-
- activeBreadboard. runMacro ( CreateLargeButtonMacroPath )
- controlButton. setName ( "viewWeights" )
- viewWeights. setText ( "View weights" )
- viewWeights. moveTo ( 630 , 160 )
- ControlMacroPath = macro. pathFromMacro ( "viewWeights.nsm" )
- viewWeights. setMacroPath ( ControlMacroPath )
-
- activeBreadboard. select ( NULL , FALSE )
- control. setEpochs ( 100 )
- control. setLearning ( FALSE )
- control. stepEpoch ( )
- control. resetNetwork ( )
-
- activeBreadboard. unlockWindowUpdate()
-
- NextMacroPath = macro. pathFromMacro ( "Testing the compiled program with a file.nsm" )
- nextButton. setMacroPath ( NextMacroPath )
- SubtitleIndex = subtitleTextBox. setTextFromFile (TextBoxPath, SubtitleIndex)
- MainIndex = mainTextBox. setTextFromFile (TextBoxPath, MainIndex)
-